<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>修改个人资料</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link href="${ctx }/css/style.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="${ctx }/js/jquery/jquery-1.6.1.min.js"></script>
		<script type="text/javascript">
			$(function() {
				$("#btnModify").click(function() {
					$("form:first").submit();
				});
			});
		</script>
	</head>
	<body>
		<center>
			<s:form action="modifyUserInfo" method="post" namespace="/user">
			<div style="width: 480px; height: 30px; text-align: left;">
				当前位置：我的个人资料
			</div>
			<div
				style="width: 480px; background-color: #EDDEA0; height: 30px; border: 1px solid gray;">
				<b>修改个人资料</b>
			</div>

			<div style="width: 480px; border: 1px solid gray; background-color: #FBF7E6;">

				<div style="width: 480px;">
					<div
						style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						帐号：
					</div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:textfield name="user.username" size="20" readonly="true"></s:textfield>
					</div>
				</div>

				<div style="width: 480px;">
					<div
						style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						密码：
					</div>
					<div
						style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:password name="user.password" size="20" ></s:password>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						确认密码：
					</div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:password id="surePassword" name="surePassword" size="20"></s:password>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 100%; text-align: right; line-height: 30px">
						性别：
					</div>
					<div style="float: right; width: 83%;; height: 65%; text-align: left; padding-top: 6px;">
						<s:radio list="#{1:'男', 0:'女'}" name="user.gender" ></s:radio>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						密码问题：
					</div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:textfield name="user.question" size="29" ></s:textfield>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						答案：
					</div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:textfield name="user.answer" size="29" ></s:textfield>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						Email：
					</div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:textfield name="user.email" size="29" ></s:textfield>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						地址：
					</div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:textfield name="user.address" size="29" ></s:textfield>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						电话：
					</div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:textfield name="user.telephone" size="29" ></s:textfield>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px">
						身份证号：
					</div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px">
						<s:textfield name="user.idCard" size="29" ></s:textfield>
					</div>
				</div>

				<div style="width: 480px;">
					<div style="float: left; width: 15%; height: 30px; text-align: right; line-height: 30px"></div>
					<div style="float: right; width: 83%;; height: 30px; text-align: left; padding-top: 6px" class="alertText">
						注：不更改本人资料请直接返回其他页面……
					</div>
				</div>

				<br />
				<div style="width: 480px;">
					<input type="button" value="更改" style="cursor: hand" id="btnModify" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="reset" value="重写" style="cursor: hand" id="tbnReWirte" />
				</div>
				<br />
			</div>
			<s:hidden name="user.id" ></s:hidden>
			<s:hidden name="user.money"></s:hidden>
			<s:hidden name="user.state"></s:hidden>
			<s:hidden name="user.userRole"></s:hidden>
		</s:form>
		</center>
	</body>
</html>
